
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,member-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link href="css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="lib/Hui-iconfont/1.0.1/iconfont.css" rel="stylesheet"
	type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>退货管理</title>
</head>
<body>
	<nav class="breadcrumb">
        <i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span>   <span class="c-gray en">&gt;</span> T_order_return管理 
		<a class="btn btn-success btn-refresh radius r mr-20"
			style="line-height:1.6em;margin-top:3px" onclick="javascript:location.replace(location.href);"
			href="javascript:location.replace(location.href);" title="刷新">刷新</a>
      <!--   <a class="btn btn-primary radius r mr-20" style="margin-top: 3px" onclick="t_order_return_add('添加T_order_return','%=path%>/backstage/t_order_return-add-pre')" href="javascript:;">
			<i class="Hui-iconfont">&#xe600;</i> 添加T_order_return</a> -->
	</nav>
	<div class="pd-20">
		<div class="cl pd-5 bg-1 bk-gray">
			<form action="<%=path%>/backstage/t_order_return-list" method="get" class="form form-horizontal" id="search-form"	onsubmit="beforSubmit()">
				<div class="text-c">
					<div class="row cl">
						<label class="form-label col-1">订单编号：</label>
						<div class="formControls col-2">
							<input type="text" name="orderNum" value="" id="rid" placeholder="订单编号" class="input-text col-2">
						</div>
		
					<label class="form-label col-1">退款状态：</label>
				<div class="formControls col-2"> 
				<select name="status" class="select">
						<option value="">--全部--</option>
											<option value="0">--未处理--</option>
											<option value="1">--退款成功--</option>
											<option value="2">--退款失败--</option>
				</select>
				</div>
               </form>
				<div class="row cl">
					<button name="" id="" class="btn btn-success"
						style="border-radius: 5px; float: right;" type="submit">
						查询</button>
		</div>
	</div>
	
		<div class="mt-20">
			<table
				class="table table-border table-bordered table-hover table-bg table-sort">
				<thead>
					<tr class="text-c">
						<th width="40">ID</th>
                            <th width="80">用户编号</th>
                            <th width="80">订单号</th>
                            <th width="80">创建时间</th>
                            <th width="80">退款金额</th>
                            <th width="80">退货人姓名</th>
                            <th width="80">退货理由</th>
                            <th width="80">退货人联系方式</th>
                            <th width="80">确认退款金额</th>
                            <th width="80">状态</th>
						<th width="100">操作</th>
					</tr>
				</thead>
				<tbody>
						<c:forEach items="${t_order_returns}" var="t_order_return">
						
						<tr class="text-c">
							<input type="hidden" id="id" name="id"
								value='${t_order_return.id}' />
                            <td>${t_order_return.id}</td>
                                <td>${t_order_return.user_id}</td>
                                <td>${t_order_return.order_id}</td>
                                <td>${t_order_return.create_date}</td>
                                <td>${t_order_return.return_money}</td>
                                <td>${t_order_return.return_name}</td>
                                <td>${t_order_return.return_reason}</td>
                                <td>${t_order_return.return_phone}</td>
                                <td>${t_order_return.money}</td>
                               <td>
                                	<c:if test="${t_order_return.status==0}">
								未处理
								</c:if>
									<c:if test="${t_order_return.status==1}">
								退款成功
								</c:if>
									<c:if test="${t_order_return.status==2}">
								退款失败
								</c:if>
								</td>
								<td>
								<a class="btn btn-danger"
									onClick="detail_back('${t_order_return.order_id}')"
									href="javascript:void(0);" title="查看">查看</a>
								</td>
						
						</tr>
					</c:forEach>
				</tbody>
			</table>
		</div>
	</div>
	<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>
	<script type="text/javascript" src="lib/layer/1.9.3/layer.js"></script>
	<script type="text/javascript" src="lib/laypage/1.2/laypage.js"></script>
	<script type="text/javascript" src="lib/My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript"
		src="lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
	<script type="text/javascript" src="js/H-ui.js"></script>
	<script type="text/javascript" src="js/H-ui.admin.js"></script>
	<script type="text/javascript">
		$(function() {
			$('.table-sort').dataTable({
				"aaSorting" : [ [ 0, "desc" ] ],//默认第几个排序
				"bStateSave" : true,//状态保存
				"aoColumnDefs" : [
				//{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
				{
					"orderable" : false,
					"aTargets" : [ 1, 2 ]
				} // 制定列不参与排序
				]
			});
			$('.table-sort tbody').on('click', 'tr', function() {
				if ($(this).hasClass('selected')) {
					$(this).removeClass('selected');
				} else {
					table.$('tr.selected').removeClass('selected');
					$(this).addClass('selected');
				}
			});
		});

	
		function detail_back(id){
			var edit_page = "<%=path%>/backstage/detail_back?orderNum="+id;
			var index = layer.open({
				type: 2,
				title: '详情页面',
				content: edit_page
			});
			layer.full(index);
		}
	</script>
</body>
</html>



